package com.ccl.keyassistant.utils;
/*
 *项目名     keyassistant
 *包名       com.ccl.keyassistant.utils
 *文件名     KeyUtil
 *创建者     ccl
 *创建时间   2019-03-30 19:34
 *注解       用于获取随机数
 */

import java.security.SecureRandom;

public class KeyUtil {
    private static final int RANDOM_NUM = 16;

    public static byte[] getRandom() {
        SecureRandom secureRandom = new SecureRandom();
        byte[] bytes = new byte[RANDOM_NUM];
        secureRandom.nextBytes(bytes);
        return bytes;
    }
}
